package com.jackson.springevent.listener;

/*
 * Author: JacksonCoder
 * FileName: CustomEventListener
 * Version: 1.0.0
 * Date: 2025/5/28
 */

import com.jackson.springevent.event.CustomEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class CustomEventListener implements ApplicationListener<CustomEvent> {


    @Override
    public void onApplicationEvent(CustomEvent customEvent) {
        System.out.println("111111111111111111111111111");
        System.out.println("Received CustomEvent: " + customEvent.getMessage());
    }
}
